package com.ferry.config.client.invoker;

import com.ferry.config.client.listener.ConfigChangeListener;
import com.ferry.config.client.listener.GlobalConfigChangeListener;

import java.util.Map;
import java.util.Set;

/**
 * Created by daiyong
 */
public interface ClientInvoker {
	void init();

	void destroy();

	void addListener(String key, ConfigChangeListener listener);

	void removeListener(String key, ConfigChangeListener listener);

	String getValue(String key);

	Map<String, String> getAllKeyValues();

	Set<String> getAllKeys();

	void setGlobalConfigChangeListener(GlobalConfigChangeListener globalConfigChangeListener);

}
